package com.crocodileQ.controller;

import com.crocodileQ.common.R;
import com.crocodileQ.domain.VO.LinkVO;
import com.crocodileQ.service.LinkService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author 鳄鱼杆
 */
@Slf4j
@RestController
@RequestMapping("/link")
public class LinkController {

    @Autowired
    private LinkService linkService;

    /**
     * 获取全部的友链
     * @return
     */
    @GetMapping("/getAllLink")
    public R<List<LinkVO>> getAllLink(){

        return linkService.getAllLink();
    }

}
